
CC=gcc
CFLAGS=-I. -I/usr/include/SDL -I "/usr/include/freetype2" -D_REENTRANT
LDFLAGS=-pthread -L/usr/X11R6/lib -L/usr/local/lib -lGL -lSDL -lpng -lfreetype
OBJS = tetris.o simple_gl.o simple_input.o tetris_game.o pngLoad.o
EXE = tetris

default: $(EXE)

$(EXE): $(OBJS)
	$(CC) $(LDFLAGS) -o $(EXE) $(OBJS) -g

clean:
	rm $(EXE)
	rm $(OBJS)
